package com.settlement.system.csv;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.alibaba.excel.converters.*;

/**
 * @author author
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Header implements Comparable<Header>{

    /**
     * 标题
     */
    private String title;

    /**
     * 字段名
     */
    private String field;

    /**
     * 顺序
     */
    private Integer order;

    /**
     * 转化器
     */
    private Converter converter;


    @Override
    public int compareTo(Header o) {
        return order - o.order;
    }
}
